<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
        // var str = "他真的是个'好'人";
    // var str = '他真的是个"好"人';

    // var msg = "好";
    // var str = '他真的是个' + msg + '人';
    // var str = '他真的是个"' + msg + '"人';           //双引号在左右字符中各占一半
    // var str = "他真的是个'" + msg + "'人";
    console.log(str);
</script>
</html>